<template>
  <div class="yingmoo-memberbanner">
    <div class="nav">
      <div class="yingmoo-logo">
        <router-link tag="div" to="/"><img src="../assets/ym-member/yingmoo-logo.png" /></router-link>
        <p>广告主中心</p>
      </div>
      <p class="account">
        <span>账户管理<img src="../assets/ym-member/selice.png" /></span>
        <router-link tag="span" to="/yminformation">消息</router-link>
      </p>
      <div class="search">
        <input type="text" class="ipt" v-model="params.key"/>
        <div class="seek" @click="search" style="cursor: pointer;">搜索</div>
      </div>
      <p class="settle">
        <img src="../assets/ym-member/car.png" /> 购物车结算
        <img src="../assets/ym-member/right.png" />
      </p>
    </div>
  </div>
</template>

<script>
  export default {
  	data(){
  		return{
  			params:{
					key:'',
					categoryCode:'',
					mediaArea:''
				}
  		}
  	},
  	methods:{
  		search(){
  			window.sessionStorage.setItem("params",JSON.stringify(this.params));
				window.location.href = "../#/ymList";
  		}
  	}
  }

</script>

<style scoped lang="less">
  .yingmoo-memberbanner {
    width: 100%;
    height: 62px;
    background-color: #036eb7;
    .nav {
      width: 1200px;
      height: 62px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .yingmoo-logo {
        width: 252px;
        height: 43px;
        display: flex;
        justify-content: space-between;
        p{
          color: #6998d4;
          font-size: 14px;
          line-height: 43px;
        }
      }
      .account{
        color: #dddddd;
        font-size: 15px;
        span{
          margin-left: 30px;
          img{
            margin-left: 5px;
          }
        }
      }
      .search{
        width: 300px;
        height: 32px;
        display: flex;
        .ipt{
          width: 242px;
          height: 30px;
          border: none;
          outline: none;
          font-size: 14px;
          padding-left: 10px;
        }
        .seek{
          width: 58px;
          height: 100%;
          line-height: 33px;
          text-align: center;
          background-color: #f29600;
          color: white;
          font-size: 14px;
        }
        
      }
      .settle{
        color: white;
        font-size: 14px;
        cursor: pointer;
      }
    }
  }
  
</style>
